package com.shopping.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shopping.common.utils.PageUtils;
import com.shopping.product.entity.AttrGroupEntity;
import com.shopping.product.vo.AttrGroupWhitAttrsVo;
import com.shopping.product.vo.AttrVo;
import com.shopping.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author Europa
 * @date 2020-04-11 20:37:09
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void saveAttr(AttrVo attr);

    List<AttrGroupWhitAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<SkuItemVo.SpuItemGroupAttrVo> getAttrGroupWithAttrsBySpuIdAndCatelogId(Long spuId, Long catalogId);
}

